package com.bling.iservice;

import java.io.Serializable;
import java.sql.SQLException;

import com.bling.common.bean.Dataset;
import com.bling.common.page.PageResult;

/**
 * 数据字典服务接口
 * @author chen-zhenxing
 *
 */
public interface IDatasetService {

	public void saveDateset(Dataset dataset) throws SQLException;
	
	public void updateDataset(Dataset dataset) throws SQLException;
	
	public void updateDatasetSort(Serializable id,Integer sort) throws SQLException;
	
	public void deleteDatasetById(Serializable id) throws SQLException;
	
	public void deleteDataset(Dataset dataset) throws SQLException;
	
	public Dataset findDatasetById(Serializable id) throws SQLException;
	
	public PageResult<Dataset> listDatasetAll() throws SQLException;
	
	public PageResult<Dataset> listDatasetByPage(int from,int num) throws SQLException;
	
	public PageResult<Dataset> listDatasetByKey(String key,int from,int num) throws SQLException;
	
	public PageResult<Dataset> listDatesetByKeyAll(String key) throws SQLException;
	
	public PageResult<Dataset> searchDataset(String keyword,int from,int num) throws SQLException;
	
}
